package com.example.forum.services;

import com.example.forum.model.Message;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IMessageService {

    //回复站内信
    void create(Message message);


    /*根据用户id查询未读数量*/
    Integer selectUnreadCount(Long receiveUserId);

    /*根据接收者id查询站内信*/
    List<Message> selectByReceiveUserId(Long receiveUserId);

    /*处理站内信状态*/
    void updateStateById(Long id, Byte state);

    /*根据id查询站内信*/
    Message selectById(Long id);

    /*回复站内信*/
    void reply(Long repliedId,Message message);
}
